<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8" />
		<title>jquery封装的ajax</title>
		<script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.js"></script>
	</head>
	<body>
		<h2>该页面练习：jQuery封装的jsonp</h2>
		<button onclick="getData()">获取汽车列表</button>
		
		<script type="text/javascript" >
			function getData(){
				$.getJSON('http://localhost:5001/test?callback=?',(data)=>{
					console.log(data)
				})
			}
		</script>
	</body>
</html>